import request from '@/utils/request'
import qs from 'qs'

/**
 * 模版列表
 * @returns {*}
 */
export const getDataTemplateList = (data) => {
  return request({
    url: '/homepage/getDataTemplateList.do',
    method: 'POST',
    data: qs.stringify(data),
    headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
  })
}

/**
 * 统计个数据上传数据量
 * @returns {*}
 */
export const getDataUploadCount = (data) => {
  return request({
    url: '/homepage/getDataUploadCount.do',
    method: 'POST',
    data: qs.stringify(data),
    headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
  })
}


/**
 * 上传数总量据量
 * @returns {*}
 */
export const getDataUploadNumber = (data) => {
  return request({
    url: '/homepage/getDataUploadNumber.do',
    method: 'POST',
    data: qs.stringify(data),
    headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
  })
}

/**
 * 今日上传数据
 * @returns {*}
 */
export const getDayUploadInfo = (data) => {
  return request({
    url: '/homepage/getDayUploadInfo.do',
    method: 'POST',
    data: qs.stringify(data),
    headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
  })
}

